package dj.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import dj.dao.DevUserMapper;
import dj.entity.DevUser;
import dj.service.DevUserService;


@Service
public class DevUserServiceImpl implements DevUserService{
	@Resource
	private DevUserMapper mapper;

	@Override
	public DevUser login(String devCode, String devPassword) {
		DevUser user=mapper.login(devCode);
		if(user!=null){
		if(!user.getDevPassword().equals(devPassword)){
			user=null;
			}
		}
		return user;
	}
	
	

}
